package com.ying.user.controller;

import com.ying.common.entity.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/test")
public class TestController {

    private static final Logger logger = LoggerFactory.getLogger(TestController.class);

    @GetMapping
    public Response list() {
        logger.info("测试列表查询");
        return new Response().success("测试列表查询");
    }

    @PostMapping
    public Response add() {
        logger.info("测试列表添加");
        return new Response().success("测试列表添加");
    }

    @PutMapping("/{id}")
    public Response update(@PathVariable Long id) {
        logger.info("测试列表修改");
        return new Response().success("测试列表修改");
    }
}
